package com.graduation.sfstore.service;


import com.graduation.sfstore.dao.TemperatureMapper;
import com.graduation.sfstore.entity.TemperatureData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TemperatureService {

    @Resource
    private TemperatureMapper temperatureMapper;

    public TemperatureData selectLatestTemperature(){
        return temperatureMapper.selectLatestTemperature();
    }

    public int insertTemperature(TemperatureData temperatureData){
        return temperatureMapper.insertTemperature(temperatureData);
    }

}
